package top.oylan.manager.service;

import com.alibaba.fastjson.JSONObject;
import top.oylan.manager.entity.Section;

import java.util.List;

/**
 * @Author abduahad
 * @Description ${description}
 * @Date 2019-03-28
 */
public interface SectionService {

    List<Section> selectSectionsByCondition(Section section);

    int saveSection(Section section);

    Section findSectionById(Integer id);

    int update(Section section);

    int delete(Integer id);

    int saveSectionFromJSON(JSONObject jsonObject);

    void saveVideos(JSONObject jsonObject, int parentId);
}
